import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { NgModel } from '@angular/forms';
import { SupDic } from 'lbf';


@Component({
  selector: 'prop-select',
  templateUrl: './prop-select.component.html',
 
})
export class PropSelectComponent implements OnInit {

  @Input()
   dic:string;
  @Input()
  itemvalue:number | string =''

   @Output() itemvalueChange = new EventEmitter<string>();

   items;
  constructor(
    private supdic:SupDic
  ) { }

  ngOnInit() {
    this.items =this.supdic.getDic(this.dic)
  }
  ngModelChange(event){
    this.itemvalueChange.emit(event)
  }

}
